home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet internetowy / Rozne / HTTrack 3.40-2 / httrack-3.40-2.exe / {app} / src_win / WinHTTrack / EasyDropTarget.h < prev    next >
C/C++ Source or Header  |  2000-01-08  |  2KB  |  46 lines

  1. #if !defined(AFX_CEasyDropTarget_H__5EBE1984_98CD_11D2_A2B1_0000E84E7CA1__INCLUDED_)
  2. #define AFX_CEasyDropTarget_H__5EBE1984_98CD_11D2_A2B1_0000E84E7CA1__INCLUDED_
  3.  
  4. #include <afxole.h>
  5.  
  6. #if _MSC_VER >= 1000
  7. #pragma once
  8. #endif // _MSC_VER >= 1000
  9. // CEasyDropTarget.h : header file
  10. //
  11.  
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CEasyDropTarget document
  14.  
  15. static int ReadString(CArchive& ar, char* pString, int nMaxLen);
  16.  
  17. class CEasyDropTarget : public COleDropTarget
  18. {
  19. public: 
  20.   CEasyDropTarget();
  21.   CEasyDropTarget(CWnd* wnd);
  22.   BOOL IsRegistered();
  23.   void SetTextCallback(UINT msg);
  24.   //
  25.   static char** StringToArray(CString st);
  26.   static int ReleaseStringToArray(char** st);
  27.  
  28.   // OLE
  29.   DROPEFFECT OnDragEnter( CWnd* pWnd, COleDataObject* pDataObject, DWORD dwKeyState, CPoint point ); 
  30.   DROPEFFECT OnDragOver( CWnd* pWnd, COleDataObject* pDataObject, DWORD dwKeyState, CPoint point ); 
  31.   DROPEFFECT OnDragScroll( CWnd* pWnd, DWORD dwKeyState, CPoint point );     
  32.   BOOL OnDrop( CWnd* pWnd, COleDataObject* pDataObject, DROPEFFECT dropEffect, CPoint point ); 
  33.   CString DoImportText(CArchive &ar);
  34.   CString DoImportFile(HDROP hDropInfo);
  35. private:
  36.   BOOL registered;
  37.   void SendWndText(CString DroppedData,CLIPFORMAT cfFormat);
  38.   int DataToString(COleDataObject* pDataObject,CString &DroppedData);
  39.   //
  40.   CWnd* wnd;
  41.   int cedt_text;
  42. };
  43.  
  44.  
  45. #endif // !defined(AFX_CEasyDropTarget_H__5EBE1984_98CD_11D2_A2B1_0000E84E7CA1__INCLUDED_)
  46.